package com.lunm.im.massage;

import com.lunm.im.menu.InstructionType;
import lombok.Data;
import lombok.ToString;

@Data
@ToString(callSuper = true)
public class GroupJoinRequestMessage extends Message {
    private String groupName;

    private String username;

    public GroupJoinRequestMessage(String username, String groupName) {
        this.groupName = groupName;
        this.username = username;
    }


    @Override
    public InstructionType getMessageType() {
        return InstructionType.GROUP_JOIN_REQUEST;
    }
}
